C# Dynamic IF Else Statment [closed]
Posted
by
Tan Liang Liang
on Stack Overflow
See other posts from Stack Overflow
or by Tan Liang Liang
Published on 2012-12-15T04:42:05Z
Indexed on
2012/12/15
5:04 UTC
Read the original article
Hit count: 187
c#
|if-statement
allrowcol[i] = rowcol + "||";
Is it possible to put :
if (loop == allrowcol.ToString())
If not, how can I place a few values inside an if
statement?
I need to have a few values in the if
, and this value is generated from a text file.
e.g. if(loop==11||14||15||16")
My array for the allrowcol.ToString()
is "11||14||15||16||". rowcol
is the number that I extract from my text file. But my if
(read as a whole string).
What can I do?
© Stack Overflow or respective owner